<?php
/**
 * Created by PhpStorm.
 * User: yangkang
 * Date: 2018/3/13
 * Time: 下午4:40
 */

namespace App\Services\Mobile;


use App\Repositories\ProductRepository;

class IndexService
{
    private $productRepository;

    public function __construct(ProductRepository $productRepository)
    {
        $this->productRepository = $productRepository;
    }

    public function index($originId)
    {
        session(['originId' => $originId]);
        return $this->productRepository->getIndexProducts();
    }
}